package com.cosmic.pizza.dao;

import com.cosmic.pizza.pojo.Address;
import org.springframework.jdbc.core.BeanPropertyRowMapper;

import java.util.List;

public interface AddressDao {
    List<Address> findAddressList(int uid, int start, int pageSize);

    int insertAddress(Integer uid, Address address);

    String findAddressById(int add_id);

    String findNameById(int add_id);

    int findAddressId(Integer uid);

    int findCountByUid(int uid);

    Address findAddressByAid(Integer add_id);

    int updateAddress(Address address);

    Address findDefaultAddressByUid(Integer uid);

    List<Address> findAddressList(int uid);

    int deleteByAid(int add_id);

    int setDefaultByAid(int add_id);
}
